// @ts-ignore
import packageJSON from '../package.json';
/**
 * @en 
 * @zh 为扩展的主进程的注册方法
 */
export const methods: { [key: string]: (...any: any) => any } = {
	openPanel() {
		Editor.Panel.open(packageJSON.name);
	},

	onClickBtnOpenMore(account: string, param: string) {
		// htmlrun.openmore(account, param);
		console.log(`onClickBtnOpenMore: ${account}, ${param}`);
	},

	onClickBtnSingle(account: string, param: string) {
		// htmlrun.opensingle(account, param);
		console.log(`onClickBtnSingle: ${account}, ${param}`);
	},

	onClickBtnDeclare() {
		console.log(`onClickBtnDeclare:`);
	},

	onClickBtnDrawCallCheck() {
		console.log(`onClickBtnDrawCallCheck:`);
	}
};

/**
 * @en Hooks triggered after extension loading is complete
 * @zh 扩展加载完成后触发的钩子
 */
export function load() {
}

/**
 * @en Hooks triggered after extension uninstallation is complete
 * @zh 扩展卸载完成后触发的钩子
 */
export function unload() { }
